import re as re
import A as cart
inp = re.split('，|、|；',input("请输入您的症状："))
info=[(inp[i]) for i in range(len(inp))]
maxfit = 0
for i in cart.arr:
    cart.Fit(i,info)
    if(i.fit>=maxfit):
        maxfit=i.fit
print("检测结果显示，您的症状最趋近于：")
for i in cart.arr:
    if i.fit==maxfit:
        print(i.type,"，发病倾向为：",i.ill)



